// ==UserScript==
// @name         微博清理推送信息
// @namespace    http://tampermonkey.net/
// @version      0.0.1-2025-08-01
// @description
// @match        https://weibo.com/**
// @icon         https://weibo.com/favicon.ico
// @author       AgMonk
// @homepage     https://gitee.com/AgMonk/tampermonkey-script
// @downloadURL https://gitee.com/AgMonk/tampermonkey-script/raw/master/weibo/weibo-clear-push-content.user.js
// @updateURL https://gitee.com/AgMonk/tampermonkey-script/raw/master/weibo/weibo-clear-push-content.user.js

// ==/UserScript==

(function () {
    setInterval(() => {
        // × 按钮
        const buttons = [...document.querySelectorAll('[title="负反馈"]')]
        if (buttons.length > 0){
            buttons.forEach(button=>{
                // 点击 × 按钮
                button.click()
                // 点击下拉框中的第一个选项（不感兴趣）
                document.getElementsByClassName('woo-box-flex woo-box-alignCenter woo-pop-item-main')[0].click()
            })
        }

    }, 1000)
})();
